package zuoye;

public class Test_two {


	public static void main(String[] args) {
		int [] arr1 = new int [] {11,12,13,} ;        //定义数组arr1并赋值
		 for (int i = 0; i < arr1.length; i++) {      //输出数组arr1
			System.out.println(arr1[i]);
			
		}

		 System.out.println(arr1);                    //输出数组arr1的地址
		 int [] arr2 =null;                           //定义数组arr2并使其为空
		 arr2=arr1;                                   //将数组arr1的地址传递给数组arr2
		 arr2[0]=100;                                 //修改数组arr2中的第一个元素的值使其为100
		 for (int i=0;i<arr2.length;i++){             //输出数组arr2
		 System.out.println(arr2[i]);}               
		 for (int i=0;i<arr1.length;i++){             //输出数组arr1
		 System.out.println(arr1[i]);}
	 }
     }





